<include file="public@header"/>
</head>
<body>
<div class="wrap js-check-wrap">
    <ul class="nav nav-tabs">
        <li class="active"><a href="#A" data-toggle="tab">周期配置</a></li>
        <li class=""><a href="#B" data-toggle="tab">赔付场配置</a></li>
    </ul>
    <form class="form-horizontal js-ajax-form margin-top-20" role="form" action="{:url('order/set')}"
          method="post">
        <fieldset>
            <div class="tabbable">
                <div class="tab-content">
                    <div class="tab-pane active" id="A">
                        <div class="form-group">
                            <label class="col-sm-2 control-label">收益率（默认0）</label>
                            <div class="col-md-6 col-sm-10">
                                <input type="text" class="form-control" name="param[yield]" value="{$param.yield|default=''}" onkeyup="value=value.replace(/^\D*(\d*(?:\.\d{0,2})?).*$/g, '$1')">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">交易金额范围（默认10-10000）</label>
                            <div class="col-md-6 col-sm-10">
                                <input type="text" class="form-control" name="param[amount_min]" value="{$param.amount_min|default=''}" style="width:100px;display: initial;" onkeyup="value=value.replace(/^\D*(\d*(?:\.\d{0,2})?).*$/g, '$1')">
                                -
                                <input type="text" class="form-control" name="param[amount_max]" value="{$param.amount_max|default=''}" style="width:100px;display: initial;" onkeyup="value=value.replace(/^\D*(\d*(?:\.\d{0,2})?).*$/g, '$1')">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">交易手续费（默认0）</label>
                            <div class="col-md-6 col-sm-10">
                                <input type="text" class="form-control" name="param[sxf]" value="{$param.sxf|default=''}" style="width:120px;" onkeyup="value=value.replace(/^\D*(\d*(?:\.\d{0,2})?).*$/g, '$1')">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">有效推广入金额度（默认200）</label>
                            <div class="col-md-6 col-sm-10">
                                <input type="text" class="form-control" name="param[quota]" value="{$param.quota|default=''}" style="width:120px;" onkeyup="value=value.replace(/^\D*(\d*(?:\.\d{0,2})?).*$/g, '$1')">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">实名送U额度</label>
                            <div class="col-md-6 col-sm-10">
                                <input type="text" class="form-control" name="param[give]" value="{$param.give|default=''}" style="width:120px;" onkeyup="value=value.replace(/^\D*(\d*(?:\.\d{0,2})?).*$/g, '$1')">
                            </div>
                        </div>
                        <!-- <div class="form-group">
                            <label class="col-sm-2 control-label">归集地址</label>
                            <div class="col-md-6 col-sm-10">
                                <input type="text" class="form-control" name="param[guiji_address]" value="{$param.guiji_address|default=''}" style="width:300px;">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">提现打款地址</label>
                            <div class="col-md-6 col-sm-10">
                                <input type="text" class="form-control" name="param[tixian_address]" value="{$param.tixian_address|default=''}" style="width:300px;">
                            </div>
                        </div> -->
                        <div class="form-group">
                            <label class="col-sm-2 control-label">必赢金额(小于该金额)</label>
                            <div class="col-md-6 col-sm-10">
                                <input type="text" class="form-control" name="param[win_amount]" value="{$param.win_amount|default=''}" style="width:300px;" onkeyup="value=value.replace(/^\D*(\d*(?:\.\d{0,2})?).*$/g, '$1')">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">必输金额(大于该金额)</label>
                            <div class="col-md-6 col-sm-10">
                                <input type="text" class="form-control" name="param[lose_amount]" value="{$param.lose_amount|default=''}" style="width:300px;" onkeyup="value=value.replace(/^\D*(\d*(?:\.\d{0,2})?).*$/g, '$1')">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">可绑定子账号数量</label>
                            <div class="col-md-6 col-sm-10">
                                <input type="text" class="form-control" name="param[son_num]" value="{$param.son_num|default=''}" style="width:300px;" onkeyup="value=value.replace(/^\D*(\d*(?:\.\d{0,2})?).*$/g, '$1')">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">邮箱</label>
                            <div class="col-md-6 col-sm-10">
                                <input type="text" class="form-control" name="param[email]" value="{$param.email|default=''}" style="width:300px;">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">Skype</label>
                            <div class="col-md-6 col-sm-10">
                                <input type="text" class="form-control" name="param[wechat]" value="{$param.wechat|default=''}" style="width:300px;">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">telegram</label>
                            <div class="col-md-6 col-sm-10">
                                <input type="text" class="form-control" name="param[telegram]" value="{$param.telegram|default=''}" style="width:300px;">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">whatsup</label>
                            <div class="col-md-6 col-sm-10">
                                <input type="text" class="form-control" name="param[whatsup]" value="{$param.whatsup|default=''}" style="width:300px;">
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="col-sm-offset-2 col-sm-10">
                                <button type="submit" class="btn btn-primary js-ajax-submit" data-refresh="1">
                                    {:lang('SAVE')}
                                </button>
                            </div>
                        </div>
                    </div>
                    <div class="tab-pane" id="B">
                        <div class="form-group">
                            <label class="col-sm-2 control-label">开启时间</label>
                            <div class="col-md-6 col-sm-10">
                                <select class="form-control" name="param[open_start_time]" style="width:160px;display: initial;">
                                    <option value=""></option>
                                    <php>for ($i=0; $i < 24; $i++) { </php>
                                        <option value="{$i}" <if isset($param.open_start_time) && $param.open_start_time == $i>selected</if>>{$i}:00</option>
                                    <php>}</php>
                                </select>
                                -
                                <select class="form-control" name="param[open_end_time]" style="width:160px;display: initial;">
                                    <option value=""></option>
                                    <php>for ($i=0; $i < 24; $i++) { </php>
                                        <option value="{$i}" <if isset($param.open_end_time) && $param.open_end_time == $i>selected</if>>{$i}:00</option>
                                    <php>}</php>
                                </select>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">赢的收益率（%）</label>
                            <div class="col-md-6 col-sm-10">
                                <input type="text" class="form-control" name="param[win_yield]" value="{$param.win_yield|default=''}" onkeyup="value=value.replace(/^\D*(\d*(?:\.\d{0,2})?).*$/g, '$1')" style="width:120px;">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">输的返还比例（%）</label>
                            <div class="col-md-6 col-sm-10">
                                <input type="text" class="form-control" name="param[lose_return]" value="{$param.lose_return|default=''}" onkeyup="value=value.replace(/^\D*(\d*(?:\.\d{0,2})?).*$/g, '$1')" style="width:120px;">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">最低下单金额</label>
                            <div class="col-md-6 col-sm-10">
                                <input type="text" class="form-control" name="param[min]" value="{$param.min|default=''}" onkeyup="value=value.replace(/^\D*(\d*(?:\.\d{0,2})?).*$/g, '$1')" style="width:120px;">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">是否开启</label>
                            <div class="col-md-6 col-sm-10">
                                <label class="radio-inline">
                                    <input type="radio" name="param[open]" value="1" <if isset($param.open) && $param.open == 1>checked</if>> 开
                                </label>
                                <label class="radio-inline">
                                    <input type="radio" name="param[open]" value="0" <if isset($param.open) && $param.open == 0>checked</if>> 关
                                </label>
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="col-sm-offset-2 col-sm-10">
                                <button type="submit" class="btn btn-primary js-ajax-submit" data-refresh="1">
                                    {:lang('SAVE')}
                                </button>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </fieldset>
    </form>
</div>
<script type="text/javascript" src="__STATIC__/js/admin.js"></script>
</body>
</html>
